package com.ap.core.validation.message.rules;

import com.ap.core.message.managepayment.info.RetrieveRTPMessageInfo;
import com.ap.core.validation.message.info.MessageValidationInfo;
import com.ap.core.validation.message.info.RTPOriginalInfo;

/**
 * User: Ranjit.Singh
 * Check if provided FI ID is valid
 */
public class RV0005Rule extends AbstractFICheckRule<RetrieveRTPMessageInfo, RTPOriginalInfo>  {
    
    @Override
    public boolean validate(MessageValidationInfo<RetrieveRTPMessageInfo, RTPOriginalInfo> infoObject) {
    	return isFinancialInstitutionExists(infoObject.getBoundObject().getRequestInfo().getFIId());    	
    }

}
